<?php
defined('IN_IA') or exit('Access Denied');
global $_GPC, $_W;
$uniacid = $_W['uniacid'];
$id = $_GPC['id'];
$list = pdo_fetch("SELECT * FROM " . tablename($this->tableyaoqing) . " WHERE uniacid = '{$_W['uniacid']} ' AND id = '{$id}' ");
if (!empty($list) && $_W['isajax']) {
	$status = $list['status'];
	if ($status == 1) {
		$newstatus = 0;
	}
	if ($status == 0) {
		$newstatus = 1;
	}
	$data = array('status' => $newstatus,);
	pdo_update($this->tableyaoqing, $data, array('id' => $list['id']));
	exit(json_encode(array('status' => $newstatus, 'id' => $list['id'])));
}